1: | app(nil,YS) | → YS | |
2: | app(cons(X,XS),YS) | → cons(X,app(XS,YS)) | |
3: | from(X) | → cons(X,from(s(X))) | |
4: | zWadr(nil,YS) | → nil | |
5: | zWadr(XS,nil) | → nil | |
6: | zWadr(cons(X,XS),cons(Y,YS)) | → cons(app(Y,cons(X,nil)),zWadr(XS,YS)) | |
7: | prefix(L) | → cons(nil,zWadr(L,prefix(L))) | |
8: | APP(cons(X,XS),YS) | → APP(XS,YS) | |
9: | FROM(X) | → FROM(s(X)) | |
10: | ZWADR(cons(X,XS),cons(Y,YS)) | → APP(Y,cons(X,nil)) | |
11: | ZWADR(cons(X,XS),cons(Y,YS)) | → ZWADR(XS,YS) | |
12: | PREFIX(L) | → ZWADR(L,prefix(L)) | |
13: | PREFIX(L) | → PREFIX(L) | |